package com.cy.mall.model.enums;

import lombok.Getter;

/**
 * @Description 结果返回代码
 * @Author tanyilin
 * @Date 2019/6/18 15:01
 */
public enum ResultCode {

    SUCCESS("0000", "调用成功"),
    FAIL("0001", "调用失败"),
    UN_LOGIN("-1000", "未登录"),
    ADD_ORDER_SUCCESS_BIGDATA_FAIL("-3000", "新增订单成功，但客户大数据查询结果不通过"),

    CUSTOMER_ID_CARD_AUTH_SUCCESS("C001", "客户已成功完成身份证认证"),
    CUSTOMER_ID_CARD_UNAUTH("C002", "客户未成功进行身份证认证"),
    CUSTOMER_ID_CARD_AUTH_FAIL_COUNT_GT_3("C003", "客户身份证认证失败次数超过（包含）3次")

    ;

    @Getter
    private String code;

    @Getter
    private String text;

    ResultCode(String code, String text) {
        this.code = code;
        this.text = text;
    }

}
